package com.estate.mapper;

import com.estate.pojo.Customer;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface CustomerMapper {
	int deleteByPrimaryKey(Long cusId);

	int insert(Customer record);

	/**
	 * 添加客户信息
	 * @param record
	 * @return
	 */
	int insertSelective(Customer record) throws Exception;

	Customer selectByPrimaryKey(Long cusId);

	int updateByPrimaryKeySelective(Customer record);

	int updateByPrimaryKey(Customer record);

	/**
	 * 查询全部客户信息
	 * @param cusPhone：移动电话
	 * @param cusName：客户姓名
	 * @param cusCardNumber：会员卡号
	 * @return
	 */
	List<Customer> selectAllCustomer(@Param("cusPhone") String cusPhone, @Param("cusName") String cusName,
			@Param("cusCardNumber") String cusCardNumber) throws Exception;
}